package com.tiger.cloud.model.crm;

import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.AppVersionNustEnum;

import io.swagger.annotations.ApiModelProperty;
/**
 * 
 * app_version-app版本控制
 *
 */
public class AppVersion extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 版本号
	 */
	@ApiModelProperty(value = "版本号",example = "2.3.1")
    private String versionCode;
	
	@ApiModelProperty(value = "客户端: 0:安卓端,1:IOS端")
	private Integer client;
	
	private Integer version;
	/**
	 * 
	 */
	@ApiModelProperty(value = "版本名称",example = "V2.3.1")
    private String versionName;
	
	/**
	 * 下载地址
	 */
	private String url;
	/**
	 * 是否强制更新   默认为  1，强制更新；0，非强制更新
	 */
	@ApiModelProperty(value = "默认为  1，强制更新；0，非强制更新",example = "1")
    private AppVersionNustEnum isNust;
	/**
	 * 更新内容
	 */
	@ApiModelProperty(value = "更新内容",example = "更新内容更新内容更新内容更新内容")
    private String description;
	/**
	 * 更新日期
	 */
	@ApiModelProperty(hidden=true)
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")   
   	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
    private Timestamp lastUpdateDate;
	/**
	 * 
	 */
	@ApiModelProperty(hidden=true)
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")   
   	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
    private Timestamp createTime;
	/**
	 * 
	 */
	@ApiModelProperty(hidden=true)
	@JsonIgnore
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")   
   	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
	private Timestamp startUseTime;
    
    public AppVersion(){
    
    }
    
    public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Timestamp getStartUseTime() {
		return startUseTime;
	}

	public void setStartUseTime(Timestamp startUseTime) {
		this.startUseTime = startUseTime;
	}

	public String getVersionCode() {
        return this.versionCode;
    }
    
    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }
    public String getVersionName() {
        return this.versionName;
    }
    
    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }
    public AppVersionNustEnum getIsNust() {
        return this.isNust;
    }
    
    public void setIsNust(AppVersionNustEnum isNust) {
        this.isNust = isNust;
    }
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    public Timestamp getLastUpdateDate() {
        return this.lastUpdateDate;
    }
    
    public void setLastUpdateDate(Timestamp lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    
	public Integer getClient() {
		return client;
	}

	public void setClient(Integer client) {
		this.client = client;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}